/// id : "1829353383102988353"
/// isDel : null
/// createBy : null
/// updateBy : null
/// createTime : 1724986808
/// updateTime : 1724986808
/// name : "ic_launcher.png"
/// isImg : true
/// contentType : "image/png"
/// size : 6225
/// path : "business/3be55c9c-cc6a-4962-9677-0954b598252f.png"
/// url : "http://minio.sxbdjw.com/business/3be55c9c-cc6a-4962-9677-0954b598252f.png"
/// source : "s3"
/// tenantId : null

class UploadImageDto {
  UploadImageDto({
      String? id, 
      dynamic isDel, 
      dynamic createBy, 
      dynamic updateBy, 
      num? createTime, 
      num? updateTime, 
      String? name, 
      bool? isImg, 
      String? contentType, 
      num? size, 
      String? path, 
      String? url, 
      String? source, 
      dynamic tenantId,}){
    _id = id;
    _isDel = isDel;
    _createBy = createBy;
    _updateBy = updateBy;
    _createTime = createTime;
    _updateTime = updateTime;
    _name = name;
    _isImg = isImg;
    _contentType = contentType;
    _size = size;
    _path = path;
    _url = url;
    _source = source;
    _tenantId = tenantId;
}

  UploadImageDto.fromJson(dynamic json) {
    _id = json['id'];
    _isDel = json['isDel'];
    _createBy = json['createBy'];
    _updateBy = json['updateBy'];
    _createTime = json['createTime'];
    _updateTime = json['updateTime'];
    _name = json['name'];
    _isImg = json['isImg'];
    _contentType = json['contentType'];
    _size = json['size'];
    _path = json['path'];
    _url = json['url'];
    _source = json['source'];
    _tenantId = json['tenantId'];
  }
  String? _id;
  dynamic _isDel;
  dynamic _createBy;
  dynamic _updateBy;
  num? _createTime;
  num? _updateTime;
  String? _name;
  bool? _isImg;
  String? _contentType;
  num? _size;
  String? _path;
  String? _url;
  String? _source;
  dynamic _tenantId;
UploadImageDto copyWith({  String? id,
  dynamic isDel,
  dynamic createBy,
  dynamic updateBy,
  num? createTime,
  num? updateTime,
  String? name,
  bool? isImg,
  String? contentType,
  num? size,
  String? path,
  String? url,
  String? source,
  dynamic tenantId,
}) => UploadImageDto(  id: id ?? _id,
  isDel: isDel ?? _isDel,
  createBy: createBy ?? _createBy,
  updateBy: updateBy ?? _updateBy,
  createTime: createTime ?? _createTime,
  updateTime: updateTime ?? _updateTime,
  name: name ?? _name,
  isImg: isImg ?? _isImg,
  contentType: contentType ?? _contentType,
  size: size ?? _size,
  path: path ?? _path,
  url: url ?? _url,
  source: source ?? _source,
  tenantId: tenantId ?? _tenantId,
);
  String? get id => _id;
  dynamic get isDel => _isDel;
  dynamic get createBy => _createBy;
  dynamic get updateBy => _updateBy;
  num? get createTime => _createTime;
  num? get updateTime => _updateTime;
  String? get name => _name;
  bool? get isImg => _isImg;
  String? get contentType => _contentType;
  num? get size => _size;
  String? get path => _path;
  String? get url => _url;
  String? get source => _source;
  dynamic get tenantId => _tenantId;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['isDel'] = _isDel;
    map['createBy'] = _createBy;
    map['updateBy'] = _updateBy;
    map['createTime'] = _createTime;
    map['updateTime'] = _updateTime;
    map['name'] = _name;
    map['isImg'] = _isImg;
    map['contentType'] = _contentType;
    map['size'] = _size;
    map['path'] = _path;
    map['url'] = _url;
    map['source'] = _source;
    map['tenantId'] = _tenantId;
    return map;
  }

}